﻿using Microsoft.EntityFrameworkCore;
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using TulingMember.Core;

namespace TulingMember.Application.Dto
{
    public class PurchaseOrderDto
    {
        public List<cts_PrintTag> printtag { get; set; }
        public string companyname { get; set; }
        public cts_PurchaseOrder order { get; set; }
        public List<cts_PurchaseOrderDetail> detail { get; set; }
    }
    public class PurchaseOrderBackDto
    {
        public List<cts_PrintTag> printtag { get; set; }
        public string companyname { get; set; }
        public cts_PurchaseOrderBack order { get; set; }
        public List<cts_PurchaseOrderDetailBack> detail { get; set; }
    }

    public class PurchaseOrderAndDetailDto
    {
        public DateTime? OrderDate { get; set; }
        public string OrderDateStr => OrderDate?.ToString("yyyy年MM月dd日");

        public string CustomerName { get; set; }

 
        public  string CreatedUserName { get; set; }
        public string ProductName { get; set; }
        public string Unit { get; set; } 

        public int Num { get; set; } 

        public decimal Price { get; set; }
         
         

        public decimal Amount { get; set; }

    
        public string Remark { get; set; }

    }
}
